import { createStore,createLogger, StoreOptions } from 'vuex'
import getters from './getter'
import user from './modules/user'
import app from './modules/app'
import permission from './modules/permission'

// const dev = import.meta.env.MODE
const dev = 'dev'
const store = createStore({
  state:{},
  modules: {
    user,
    app,
    permission
  },
  getters,
  actions:{},
  plugins:dev==='dev' ? [createLogger()] : []
})
export default store;
